<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:c="http://java.sun.com/jsp/jstl/core"
          xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
      
<f:view contentType="text/html">

	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title><ui:insert name="title" /></title>
        <link rel="shortcut icon" href="${request.contextPath}/resources/css/images/favicon.ico"/>
        <link rel="stylesheet" type="text/css" href="${request.contextPath}/resources/css/style.css"/>
	</h:head>


	<h:body>
        
        <p:growl id="growlMessages" showDetail="false" sticky="false" life="13000" />
	
		<div id="container">
		
			<div id="header">
				<a href="${request.contextPath}/app/account" class="menu">Home</a>
				<a href="${request.contextPath}/app/student" class="menu">Admission</a>
				<a href="${request.contextPath}/app/students" class="menu">Students</a>
				<a href="${request.contextPath}/app/teachers" class="menu">Teachers</a>
				<a href="${request.contextPath}/app/classes" class="menu">Classes</a>
				<a href="${request.contextPath}/app/parents" class="menu">Parents</a>
				
				<div style="float: right;clear:both;">
				<c:if test="${not empty currentUser.name}">
					<b>Welcome, </b>${user.firstName} ${user.lastName} | 
					<a href="${request.contextPath}/app/logout">Logout</a>
				</c:if>
				</div>
				<ui:insert name="header"/>
			</div>
			
			<div id="content">
				<ui:insert name="content"/>
			</div>
			
			<div id="footer">
				<address>Copyright &#64; 2014 Thbaymet</address>
				<ui:insert name="footer"/>
			</div>
		</div>
		
	</h:body>

</f:view>
</html>